Integrand size = 25, antiderivative size = 66 \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {3744, 283, 223, 212} \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \]
[In]
[Out]
Rule 212
Rule 223
Rule 283
Rule 3744
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x^2} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {b \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {b \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f} \\ & = \frac {\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {\cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \\ \end{align*}
Result contains higher order function than in optimal. Order 4 vs. order 3 in optimal.
Time = 2.60 (sec) , antiderivative size = 156, normalized size of antiderivative = 2.36 \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=-\frac {\left ((a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)-\sqrt {2} b \sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt {2}}\right ),1\right )\right ) \tan (e+f x)}{\sqrt {2} f \sqrt {(a+b+(a-b) \cos (2 (e+f x))) \sec ^2(e+f x)}} \]
[In]
[Out]
Time = 0.09 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.41
method | result | size |
derivativedivides | \(-\frac {\left (a +b \tan \left (f x +e \right )^{2}\right )^{\frac {3}{2}}}{f a \tan \left (f x +e \right )}+\frac {b \tan \left (f x +e \right ) \sqrt {a +b \tan \left (f x +e \right )^{2}}}{f a}+\frac {\sqrt {b}\, \ln \left (\sqrt {b}\, \tan \left (f x +e \right )+\sqrt {a +b \tan \left (f x +e \right )^{2}}\right )}{f}\) | \(93\) |
default | \(-\frac {\left (a +b \tan \left (f x +e \right )^{2}\right )^{\frac {3}{2}}}{f a \tan \left (f x +e \right )}+\frac {b \tan \left (f x +e \right ) \sqrt {a +b \tan \left (f x +e \right )^{2}}}{f a}+\frac {\sqrt {b}\, \ln \left (\sqrt {b}\, \tan \left (f x +e \right )+\sqrt {a +b \tan \left (f x +e \right )^{2}}\right )}{f}\) | \(93\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 152 vs. \(2 (58) = 116\).
Time = 0.35 (sec) , antiderivative size = 331, normalized size of antiderivative = 5.02 \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\left [\frac {\sqrt {b} \log \left (\frac {{\left (a^{2} - 8 \, a b + 8 \, b^{2}\right )} \cos \left (f x + e\right )^{4} + 8 \, {\left (a b - 2 \, b^{2}\right )} \cos \left (f x + e\right )^{2} + 4 \, {\left ({\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \sin \left (f x + e\right ) + 8 \, b^{2}}{\cos \left (f x + e\right )^{4}}\right ) \sin \left (f x + e\right ) - 4 \, \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{4 \, f \sin \left (f x + e\right )}, -\frac {\sqrt {-b} \arctan \left (\frac {{\left ({\left (a - 2 \, b\right )} \cos \left (f x + e\right )^{3} + 2 \, b \cos \left (f x + e\right )\right )} \sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, {\left ({\left (a b - b^{2}\right )} \cos \left (f x + e\right )^{2} + b^{2}\right )} \sin \left (f x + e\right )}\right ) \sin \left (f x + e\right ) + 2 \, \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{2 \, f \sin \left (f x + e\right )}\right ] \]
[In]
[Out]
\[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int \sqrt {a + b \tan ^{2}{\left (e + f x \right )}} \csc ^{2}{\left (e + f x \right )}\, dx \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.71 \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\frac {\sqrt {b} \operatorname {arsinh}\left (\frac {b \tan \left (f x + e\right )}{\sqrt {a b}}\right ) - \frac {\sqrt {b \tan \left (f x + e\right )^{2} + a}}{\tan \left (f x + e\right )}}{f} \]
[In]
[Out]
\[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int { \sqrt {b \tan \left (f x + e\right )^{2} + a} \csc \left (f x + e\right )^{2} \,d x } \]
[In]
[Out]
Timed out. \[ \int \csc ^2(e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx=\int \frac {\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}}{{\sin \left (e+f\,x\right )}^2} \,d x \]
[In]
[Out]